package com.heima.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.article.pojos.ApArticle;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ApArticleMapper extends BaseMapper<ApArticle> {
    Long count(@Param("channelId") Integer channelId);

    List<ApArticle> selectByPage(@Param("channelId") Integer channelId, @Param("start") int start, @Param("size") Integer size);
}
